When you first begin the game you will recieve 24-hours of protection from other players being able to invade your base. During this time make sure you do not ignore the in-game requests to strengthen your wall, research and increase food production. The video below will explain in detail how you can protect yourself from enemy attacks.