He was later arrested during political arrests later that year. During the Iranian revolution Nikpey was in jail in Tehran and was freed by the revolutionaries.He was arrested shortly after the success of the revolution. He was charged with dubious charges such as collaborating with imperialists, collaborating with Pahlavi regime, not doing enough work as mayor and not fixing traffic problems, taking bribes, changing comprehensive plan for the city of Tehran and other non-specific charges and was quickly sentenced to death. He was executed on 11 April 1979.