Forensic engineering is a branch of structural engineering that focuses on analyzing structural failures and accidents to determine the causes of the problem. Forensic engineers also provide expert opinions and witness testimony in legal cases involving structural failures such as building collapses.