“Verily your Lord is the one who created the heavens and the earth in six days and then sat on the throne. He covers the day with the night which seeks it persistently (is never late in its succession). The sun, the moon and the stars are subjugated to His command. Verily, His is the creation and the command, blessed is Allah, Lord of the worlds.” (Qur’an 7:54)
Allah is the creator and we must live our lives following his commands and accepting that he is the authority. However being human we may sometimes make bad choices. The key is to never lose hope of the mercy of Allah and turn back to him in repentance.