The stern is the rear part of a ship or boat . The stern is the rear or aft part of a ship or boat , technically defined as the area built up over the sternpost , extending upwards from the counter to the taffrail . The stern lies opposite of the bow , the foremost part of a ship .