A toothache caused by a cavity or infection may last beyond 48 hours and until it is treated.