The short answer is no, swimming in affected areas of the Gulf of Mexico was not safe during and immediately after the 2010 Deepwater Horizon disaster. The spill released an estimated 4.9 million barrels of crude oil, and the unprecedented use of chemical dispersants (Corexit 9500 and 9527) created a complex toxic mixture in the water column and on beaches.
Federal and state agencies (EPA, NOAA, CDC, state health departments) issued extensive beach advisories and closures based on water and sediment testing. These were not uniform; some beaches reopened relatively quickly after cleaning, while marshes and less-accessible shores remained restricted for years.
Most Gulf beaches are now open and considered safe for recreation. Long-term monitoring continues (Gulf of Mexico Research Initiative, NOAA's Mussel Watch). However, tar balls still occasionally wash ashore, and some studies suggest lingering sub-lethal effects on certain species. Swimmers should always check current local advisories (state health department sites) and avoid areas with visible oil, sheen, or foul odor.
Bottom line: During the active spill and cleanup (2010–2011), swimming in impacted zones posed real health risks. Today, general recreation is largely restored, but vigilance and adherence to local warnings remain essential.