There are a few main causes of most aviation accidents, including:
Pilot error
Mechanical failure
Weather
Design defect or failure
Runways defects or issues
Air traffic control error