Offshore is typically carried out in order to explore for and subsequently extract petroleum which lies in rock formations beneath the seabed.
Onshore is defined as drilling with rigs that are moved in by ground transportation and the drilling site is not over water.