Mahloof resigned as a MP for Galolhu-South constituency on November 17, 2018 to assume his position as Minister of Youth, Sports, and Community Empowerment under president Ibrahim Mohamed Solih. He became the youngest ever cabinet minister to be ever appointed at the age of 38 years old.