They're mostly used for recreational sailing or racing and are also equipped with an engine (diesel or electric sail drive) for maneuvers and in case there's no wind. Sailing has also advanced a lot since the nineternth century, but commercial shipping is now done with bunker oil and diesel engines and was previously done with steamers.