The writ can be civil and criminal. According to the law, writ petitions can be filed for all the cases of infringement of the rights provided by the Constitution(fundamental) and they can be Criminal as well as Civil.