(CNN) - Barack Obama resigned Saturday from his Chicago church - where controversial sermons by his former pastor and other ministers had created repeated political headaches for the frontrunner for the Democratic presidential nomination - his campaign confirmed.
The resignation comes days after the Rev. Michael Pfleger, a visiting Catholic priest, mocked Obama's Democratic rival, Sen. Hillary Clinton, for crying in New Hampshire during the runup to the primary there.
Previously, the Rev. Jeremiah Wright - former pastor at Trinity United Church of Christ and Obama's minister for about 20 years - drew unwanted attention for the campaign when videos of several of his fiery sermons surfaced.
In them, Wright suggested the U.S. government may be responsible for the spread of AIDS in the black community and equated some American wartime activities to terrorism.
Obama has said he was not present for the controversial sermons by Wright or Pfleger and had condemned both - most recently saying he was "deeply disappointed" by Pfleger's "divisive, backward-looking rhetoric."