After Viborg was lost in 1710, Nieroth was sent to try to reclaim it. He assembled 10,000 men, who besieged the city in 1711 but lacked equipment to enter it, and had to retreat. He died suddenly during a temporary halt in Sarvlax manor (Finnish: Sarvilahti) in Pernå parish, on 25 January 1712.
He was married on 7 January 1686 in Stockholm to Christina Margareta Horn (d. 17 September 1703).
He was elevated to friherre and count on 26 June 1706.