What are some rules a pilot must follow?

FARs Federal Aviation Regulations it's an entire book.
FARs Federal Aviation Regulations it's an entire book.