By the time the Allied forces invaded Homeland on the 3rd of Shahrivar 1320, he was serving as the deputy of the horse breeding department in the army. This position reflected his early inclination towards combining his veterinary expertise with military service.His initial military assignments included a brief tenure as a deputy police officer, after which he returned to the army and earned the rank of brigadier general. He then headed the Doab Affairs Department (Chaharpayan), overseeing various logistical and administrative tasks within the military. His roles expanded to include the directorship of general affairs, the directorate of sports affairs, and the command of the armed customs guard. These diverse responsibilities showcased his versatility and leadership within the military hierarchy.Alavi Moghadam’s ascent continued as he achieved the rank of major general and became the head of the gendarmerie of Iran in 1330. This role placed him at the forefront of maintaining internal security and order across the country. His influence further grew when he was appointed deputy minister of war, positioning him as a key figure in Iran’s military and political landscape.