Final answer:
Nicaragua is the country with León as its former capital and was where the dictator Anastasio Somoza García was assassinated. It endured a long period of dictatorship under the Somoza family, which was overthrown by the Sandinista revolution, and has made recovery efforts in recent decades.
Step-by-step explanation:
The country with León, its former capital, where Anastasio Somoza García, the dictator, was assassinated, and Masaya, as well as Corinto, is Nicaragua. After the US Marines' occupation from 1926 to 1933, the Somoza family established a dictatorial regime that lasted until 1979.
Their rule, marked by governmental manipulation and corruption, ended in a violent overthrow by the Sandinistas, a Marxist rebel group. The country faced significant challenges but has since made efforts to recover economically and politically, including through promotion of tourism and improving employment opportunities.