Hello, sanlinn
In the first sentence, "beginning" is a noun, so it can take an article.
"The beginning of the book was interesting."
"I liked him from the (very) beginning."
In the second sentence, "beginning" is a verb, and for that reason it will not take an article. I have never come across such a structure before, though.
Miriam