A dental crown can be used to fix a cavity if the decay is extensive and cannot be restored with a filling. The crown is placed over the remaining tooth structure after the decay has been removed to provide additional strength and protection to the tooth.