Why does everything have a beginning and an end? Is there anything eternal?

This worldly life has a beginning and an end, but the Hereafter is eternal life. Islam guides us on how to live for our eternal success in the life to come.