In 1840, a year after the dissolution of the Greek Catholic Church in Russia, the authorities of the Kingdom of Poland established a teaching institute in Oheim, whose task was to educate deacons and teachers for the linear diocese of Chełm. According to the intention of the political authorities, this school should serve as a tool for the liquidation of the Union in the Kingdom of Poland. The Russian authorities did not fight against the Catholic Church. The separation of the Uniates from it also contributed to the weakening of this church (in 1852 there were over two hundred thousand of them). One of the most characteristic forms of anti-Catholic actions undertaken by the authorities at that time was the "purification" of the Greek Catholic liturgy by abolishing Latin elements and gaining new believers - the so-called "stealing souls". The school in Chełm was completely controlled by the state, therefore it had to accept the curriculum, teaching staff and textbooks imposed by the school. The political authorities were responsible for appointing, transferring and dismissing school graduates to and from work. During over twenty years of existence, the school in Chełm trained 467 graduates to work in the Chełm diocese. Unici negatively assessed both the establishment of the school and the work of the Djaken teachers themselves. The reason for this lack of affirmation was not only their often reprehensible behavior, e.g. alcoholism, but above all the fact that parish halls and residential and farm buildings for Djakena's teachers were built and maintained by the Uniate population using their own funds. After the education reform was carried out in 1864, the school in Chełm continued to educate only candidates for Djak-Dienst. The training of teachers of combined primary schools was assigned to pedagogical courses.