 He was knighted in 1907.Gilbert died of a heart attack while attempting to rescue a young woman to whom he was giving a swimming lesson in the lake at his home.Gilbert's plays inspired other dramatists, including Oscar Wilde and George Bernard Shaw, and his comic operas with Sullivan inspired the later development of American musical theatre, especially influencing Broadway librettists and lyricists.