There is provided a substrate processing apparatus which includes: an exhaust pipe configured to selectively discharge an exhaust gas generated by a substrate process to a first pipe or a second pipe; a liquid supply part configured to supply a cleaning liquid to the exhaust…