The purpose of the Bay of Pigs Invasion was:
To overthrow the regime of Fidel Castro in Cuba.
The invasion, which occurred in April 1961, was an unsuccessful attempt by a CIA-sponsored paramilitary group composed of Cuban exiles to invade Cuba and oust Castro's government.