then there were good relations of Nepalis Hindus with the Nepali Muslims and Buddhists. The Nepal rulers passed laws making conversion from Hinduism to Islam and Christianity illegal and enacting them as criminal offenses. These laws were enforced even after the revolution of 1951, and were reaffirmed in the legal code of 1963, which prohibited the preaching of Christianity or Islam and stipulated three years in jail for those who attempted to convert people, and six years for those who succeeded in converting others. For those who "attempt" to be converted, there was a fine of a hundred rupees, and for those who actually converted (that is, were baptized), there would be imprisonment of one year. The code stated that "when somebody becomes converted, the conversion is nullified, and he remains in the Hindu dharma [religion]". From the early 1960s, the state began to actively prosecute Christians in places where the baptism of Nepali citizens had occurred; this active governmental persecution continued up to 1990. Following baptisms in Nepalgunj and Tansen between 1958 and 1960, pastors David Mukhia and Prem Pradhan, along with six baptized believers, were prosecuted by the authorities for proselytism and conversion. The pastors were sentenced to six years imprisonment; the male converts were sentenced to one year imprisonment and the female converts to six months. Prosecutions such as this continued for the whole of the Panchayat period: when an amnesty was proclaimed in 1990, there were 30 individuals in Nepal imprisoned for crimes of proselytism or conversion, and 200 others who were subject to legal action for the same offenses. Modern Era After the overthrow of the Rana regime in 1951, King Tribhuvan opened Nepal's borders and appealed to the outside world to assist in Nepal's development. Then, he granted the freedom of religion to Nepalese, especially to Nepali Muslims, and the first church was established in Nepal. Though giving release to other religious groups, the society of Nepal followed strict and rigid Hindu laws for all the citizens, with Hinduism being the state religion. Hinduization by rulers According to various historical sources, even though the presence of varna and caste had been known as an element in the social structure of the Kathmandu Valley since the Licchavi period (c., 3rd century CE), the majority of the residents of the Nepal Valley were for the first time codified into a written code only in the 14th