A ruler is used to measure length and draw straight lines, typically marked in inches and centimeters.