Nucleic acids can be engineered to form a variety of nanostructures including DNA origami, which involves folding DNA into specific shapes. RNA can also be used in similar ways, often forming complex secondary and tertiary structures. These structures can be designed to perform specific functions, such as drug delivery or as components of biosensors.