Authorities said the Church of Nuestra Senora de los Angeles in Sangonera la Verde, Murcia province, was holding morning mass Monday when the cyclist rode into the church, The Local.es reported Tuesday.
A group of female worshippers took the man's gun as another worshipper tackled him as he jumped onto the altar and demanded the women give him his gun back.
Police and Civil Guard took the man into custody.
He was taken to a hospital and treated with psychiatric medication, officials said.
Beautician charged with giving client fatal silicone butt injection
LGBT community has 'bullied the American people': Bachmann