A fax machine is used to send and receive documents over a telephone line by converting physical documents into electronic signals for transmission and printing.