Start and stop bits are used in serial communication to signal the beginning and end of data transmission. A start bit marks the beginning of data transmission, and stop bits signal the end of the data frame, ensuring that the data is received correctly.