bogomer next appeared in sources one and a half decades later, even after béla's accession to the hungarian throne in 1235 and the mongol invasion of hungary in 1241. after the mongols' unexpected withdrawal in march 1242, bogomer was appointed "ispán" of nyitra and trencsén counties. in that capacity, bogomer was responsible for restore law and order in the region, while managed to resettle the dispersed and fleeing population. soon he was replaced as head of nyitra county by roland rátót around november 1242, but he was able to retain his dignity in trencsén county at least until april 1243. during his tenure, frederick ii, duke of austria invaded the country. bogomer played an important role in the suppression of austrian units, shortly thereafter he led a royal army send to help bolesław v the chaste (son-in-law of béla iv, the hungarian king) attacked by konrad i of masovia. for his loyalty and military successes, bogomer was granted the lands of kiszuca (jeszeszin), pruska and mortund (in trencsén and hont counties) by béla in may 1244. he was transferred to the position of "ispán" of zala county by december 1245. bogomer died by 24 october 1254, when jeszeszin, his previously owned land was donated to members of the zólyom kinship.