Count Carl Johan Gustaf Snoilsky was a Swedish diplomat and lyricist of probable Slovene descent. He was the most prominent early realist and was a member of the Swedish Academy. His life and work was a major influence on the playwright Henrik Ibsen, in particular Ibsen's play Rosmersholm.