From 1921 until 1939, Masty was part of the Second Polish Republic. In September 1939, the town was occupied by the Red Army and, on 14 November 1939, incorporated into the Byelorussian SSR.