HAVANA (AP) — Cardinal Jaime Lucas Ortega y Alamino, a sugar worker’s son who oversaw the first papal visit to Cuba, helped lower barriers to believers in the communist country and played a role in mediating improved U.S.-Cuba ties, died Friday at age 82.His death was announced by his successor, Havana Archbishop Juan de la Caridad García Rodriguez.Ortega helped open a dialogue between Havana and the U.S. that led the two countries to resume relations in 2014, after presidents Raúl Castro and Barack Obama secretly turned to Pope Francis for help. He served as a messenger for both sides, carrying secret letters and responses that helped thaw relations.With his flawless French, flowing vestments and dark-rimmed glasses, Ortega cut an elegant figure in Cuban society. Abroad, he was well known among fellow cardinals, especially in the United States, where he befriended several, including Cardinal William Keeler, archbishop of Baltimore.Born and raised in Cuba, the country’s top Roman Catholic leader was mentioned at times as a longshot candidate to succeed Pope John Paul II.But Ortega’s beginnings were modest, and his climb up the ecclesiastical ladder was arduous.The son of a sugar worker, Ortega was born on Oct. 18, 1936, in the sugar mill town of Jagüey Grande in the central province of Matanzas, and moved to the provincial capital as a child. There, he attended public schools and began studying for the priesthood at San Alberto Magno Seminary.He completed his studies with the Fathers of Foreign Missions in Quebec, Canada, and returned to Matanzas to be ordained on Aug. 2, 1964 — just as the new communist government was further weakening an already feeble Cuban church.The church, long identified with Cuba’s wealthier citizens, took a vehemently anti-communist line shortly before Castro declared Cuba to be socialist in 1961. The government later accused prominent Catholics of trying to topple Castro.Public religious events were banned after processions were transformed into political protests, sometimes turning violent. Hundreds of foreign priests, mostly from Spain, were expelled. The more than 150 Catholic schools that once operated across the island were nationalized.Ortega was among many Cuban priests sent to military-run agricultural work camps, spending a year beginning in 1966. After his release, Ortega worked as a parish priest in his hometown. He also oversaw several neighboring parishes, traveling among churches to say Mass, perform baptisms and officiate at weddings.Story continuesA practiced pianist, Ortega composed music for a Cuban Catholic Mass, and traveled to Havana weekly to lecture on theology at the San Carlos y San Ambrosio Seminary.Ortega was named bishop for the western province of Pinar del Río in December 1978 and was consecrated the following month. He became archbishop of Havana in November 1981.At the time, the Cuban government was officially atheist. Believers of all faiths were banned from the Communist Party, the military and some other professions. But Ortega quietly helped rebuild the church infrastructure around Havana, establishing new parishes and renovating more than 40 churches.He also set up Caritas of Havana, the first office of the Catholic relief charity in Cuba. That planted the seed for Caritas of Cuba, which delivers meals and medicine to people across the island.Ortega was named president of Cuba’s Catholic Bishops Conference in 1988 and held that position for a decade.In November 1994, Pope John Paul II named Ortega the first cardinal in Cuba in more than three decades — and the second in the island’s history.In 1992, the government dropped its constitutional references to atheism, and a gradual thaw in church-state relations began, culminating with the papal visit on Jan. 21-25, 1998, and government acceptance of some outdoor religious events.While Ortega refrained from publicly confronting the Cuban government, on his trips abroad he expressed disappointment that the opening had been modest.Critics accused him of being too conciliatory to the government, although Ortega — who in 2010 and 2011 helped the church and Raúl Castro reach a deal to free a group of political prisoners who had been held since 2003 — said the church’s place was not in politics but in humanitarian deeds.In April 2016, Pope Francis approved Ortega’s request to retire.___Associated Press journalist Michael Weissenstein contributed to this report.