After returning to Thailand, Virachai contested the general election in 2001 and was elected Member of Parliament for the Democrat Party.
In 2010, Virachai changed to the Ministry of Science and Technology, succeeding Kalaya Sophonpanich.