Climate and the environment, for instance, can influence the sturdiness and longevity of your roof. The elements can cause minor and even major damage to it. However, these are examples of factors that are beyond anyone's ability to manage. The wrath of snow, hail, rain, wind, or the sun is not something which we can completely avoid.
A factor we have some sort of control over is proper roof maintenance, or the lack thereof. We can extend the life of our roof by taking good care of it. We can do that by checking for problems every so often and addressing minor flaws before they progress into something worse.
To a certain extent, though, materials and construction techniques can also have an impact on the durability of the protective covering above your head. Certain materials can better withstand damaging elements than others. As for construction, it's largely the quality of workmanship that makes a difference.