▁Naz i - S ov iet ▁Alliance , ▁the ▁town ▁was ▁an nex ed ▁by ▁the ▁Soviet ▁Union . ▁The ▁fact ories ▁were ▁dis m ant led ▁and ▁sent ▁to ▁Russia ▁while ▁a ▁large ▁part ▁of ▁the ▁inhabitants ▁were ▁in ▁ 1 9 4 0 ▁arrested ▁by ▁the ▁NK VD ▁and ▁imprison ed ▁in ▁the ▁Soviet ▁Gul ag ▁system . ▁On ▁ 2 5 ▁June ▁ 1 9 4 1 ▁the ▁town ▁got ▁under ▁German ▁occupation , ▁which ▁ended ▁on ▁ 1 8 ▁July ▁ 1 9 4 4 . ▁During ▁the ▁f ights ▁the ▁town ▁was ▁sever ely ▁bom bed , ▁which ▁added ▁to ▁the ▁destruction ▁of ▁the ▁city . ▁All ▁in ▁all , ▁until ▁July ▁ 1 8 , ▁ 1 9 4 4 , ▁more ▁than ▁ 7 0 0 ▁inhabitants ▁of ▁H ajn ów ka ▁lost ▁their ▁lives , ▁the ▁fact ories ▁were ▁ro bb ed ▁and ▁then ▁demol ished , ▁while ▁the ▁train ▁station ▁and ▁parts ▁of ▁the ▁town ▁centre ▁were ▁level led ▁by ▁aer ial ▁bomb ard ment . ▁ ▁Despite ▁har sh ▁conditions ▁and ▁infrastr uct ural ▁losses , ▁life ▁returned ▁to ▁H ajn ów ka ▁quite ▁soon . ▁This ▁attract ed ▁new ▁sett lers ▁as ▁well ▁as ▁pre - war ▁inhabitants ▁of ▁the ▁area , ▁so ▁the ▁town ▁quickly ▁recovered . ▁Also , ▁the ▁narrow ▁streets ▁were ▁mostly ▁re built . ▁In ▁ 1 9 5 1 , ▁the ▁town ▁( until ▁then ▁formally ▁a ▁village ) ▁was ▁granted ▁with ▁city ▁rights ▁and ▁between ▁