The fire marshal is investigating the cause of a residential structure fire that left two people hospitalized.