Answer the following question given this paragraph: 

People build dams and levees to protect from flooding. In an emergency, sandbags can be put out.


Q: Why do people build dams and levees?


A:
prevent flooding