Why is a year on Mars longer than a year on Earth?

A year on Mars is longer than a year on Earth because Mars takes longer to orbit around the Sun compared to Earth. While Earth takes approximately 365.25 Earth days to complete one orbit, Mars takes approximately 687 Earth days to complete its orbit.