Before Hurricane Matthew hit the United States this week the storm tore through the Caribbean, bringing torrential rain and high winds to Haiti, Cuba and the Bahamas. But despite hitting each of these countries hard, Haiti faced the greatest devastation with more than 470 killed compared to just a handful in its neighboring Caribbean countries.

The key difference between countries that succeed in weathering a storm and those that struggle is preparation and poverty. Perhaps most importantly, the national government regularly ranks among the world’s least effective and has invested little in disaster preparedness and response. In the hours leading up to the storm many Haitians were unaware of the impending disaster and continued with their daily lives. In the aftermath, bodies were left in the street and the government failed to provide food and water, according to a Reuters report.

Read More: See the Path of Hurricane Matthew

One major factor is simple poverty, which tends to exacerbate the effects of natural disasters. Haiti is the poorest country in the northern hemisphere with 2.5 million people living in extreme poverty, and the citizens lack the resources to prepare on their own. The lack of preparation extends to the shoddy construction of buildings in the shanty towns where most of the country’s urban residents live. The country lacks a national building code and engineers often design to standards established for other countries that do not necessarily account for the country’s risks, according to a report from the American Institute of Architects in the aftermath of the country’s 2010 earthquake. The limited building regulations are practically never enforced.

Hurricane Matthew comes just six years after an earthquake in the country that killed more than 100,000 people, according to a U.S. Geological Survey estimation. That event destroyed three quarters of Port-au-Prince’s buildings, including the Presidential Palace, according to the AIA report.

In comparison, Cuba implemented its thorough disaster preparedness plan in advance of the storm. The country has a mandatory hurricane drill every May in advance of hurricane season, according to a Center for International Policy report. The country blasts out notices about the upcoming storm on state-run television and radio, warning people to take cover. Hundreds of homes were destroyed but no deaths have been reported.

Read More: Hurricane Matthew Will Hurt African Americans and Low-Income People Most

The gap between the damage wrought by extreme weather events in wealthy countries and their underdeveloped counterparts will only grow in the coming years as climate change continues, climate policy experts say. Building new infrastructure to adapt—sea walls, elevated building and much more—can cost billions leaving the measures out of reach of poor countries that have emitted few of the greenhouse gases that cause climate change. Addressing that gap was a key sticking point in last year’s Paris Agreement with developing countries ultimately committing to mobilizing $100 billion in financing for the developing world to address climate change. But unfortunately even those funds will not be enough to stave off disaster in the short term in much of the developing world.

Get our Space Newsletter. Sign up to receive the week's news in space. Please enter a valid email address. Sign Up Now Check the box if you do not wish to receive promotional offers via email from TIME. You can unsubscribe at any time. By signing up you are agreeing to our Terms of Use and Privacy Policy . This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply. Thank you! For your security, we've sent a confirmation email to the address you entered. Click the link to confirm your subscription and begin receiving our newsletters. If you don't get the confirmation within 10 minutes, please check your spam folder.

Write to Justin Worland at justin.worland@time.com.