This document is a textbook on drilling engineering that covers topics such as rotary drilling rig components and systems, geomechanics, drilling hydraulics, drill bits, and drillstring design. It provides detailed explanations of concepts and calculations with examples. The textbook is intended for a master's level course on petroleum engineering and drilling.