Tavčar was born into the poor peasant family of Janez and Neža née Perko in the Carniolan village of Poljane[1] near Škofja Loka in what was then the Austrian Empire (now Slovenia).
He began his political career in the Provincial Assembly of the Duchy of Carniola, where he formed the core of a radical group of Slovene liberals together with Ivan Hribar.
In 1884, Mahnič published a satirical short story entitled Indija Koromandija, in which he mocked the progressive ideas of Josip Stritar, whom Tavčar admired.
Tavčar responded with the dystopic novel named 4000, in which he described the sad and repressive society resulting from the implementation of Mahnič's integralist policies.
He often depicted rural environments of his native Upper Carniola, in which he saw a genuine and healthy counterpart to the somehow degenerate urban life.
His most important work is Visoška kronika (The Visoko Chronicle), a short historical novel set in the period after the Thirty Years' War in the 17th century.
Another important work is Cvetje v jeseni (Blossoms in Autumn), a novel of a middle age urban dweller who moves to the countryside, where he falls in love with a younger girl.