Khomeini was a marja (“source of emulation”) in Twelver Shia Islam, a Mujtahid or faqih (an expert in Islamic law) and author of more than 40 books, but he is primarily known for his political activities. He spent more than 15 years in exile for his opposition to the last Shah.