Question: what is the difference between in the beginning and at the beginning?
Answer: At the beginning (of) is used for the time and place when something begins. In the beginning = at first and suggests a contrast with a later situation.