It comes after the likes of Storm Emma left the coastline from Huelva to Malaga with serious damage.
Malaga province will receive €2,550,000 from the Madrid aid, which will bring in sand to add to eroded beaches and repair damages in facilities and infrastructures.
The beaches receiving cleanup jobs are Manilva, Casares, Estepona, Marbella, Mijas, Fuengirola, Benalmádena, Torremolinos, Málaga, Rincón de la Victoria, Vélez-Málaga, Algarrobo, Torrox and Nerja.
Cadiz, meanwhile, will receive a whopping €20 million following a significant loss of sand and the destruction of facilities and infrastructure.
The emergency works will cover 67 beaches in 16 municipalities: Sanlúcar de Barrameda, Chipiona, Puerto de Santa Maria, Rota, Puerto Real, Cadiz, San Fernando, Chiclana, Conil, Vejer de la Frontera, Barbate, Tarifa, Algeciras, Los Barrios, La Linea de la Concepción and San Roque.
In total, it will cover 40 kilometers of coastline.
The funds will repair breakwaters and damaged dams, recovery of the dune system, replacement of access to beaches and repair of promenades and other infrastructures, among others.