The <a class="mw-redirect" href="https://en.wikipedia.org/wiki/Russo-Turkish_War_(1877–78)" id="mwbg" rel="mw:WikiLink" title="Russo-Turkish War (1877–78)">Russo-Turkish War</a> ends with <a href="https://en.wikipedia.org/wiki/Bulgaria" id="mwbw" rel="mw:WikiLink" title="Bulgaria">Bulgaria</a> <a href="https://en.wikipedia.org/wiki/Liberation_of_Bulgaria" id="mwcA" rel="mw:WikiLink" title="Liberation of Bulgaria">regaining its independence</a> from the <a href="https://en.wikipedia.org/wiki/Ottoman_Empire" id="mwcQ" rel="mw:WikiLink" title="Ottoman Empire">Ottoman Empire</a> according to the <a href="https://en.wikipedia.org/wiki/Treaty_of_San_Stefano" id="mwcg" rel="mw:WikiLink" title="Treaty of San Stefano">Treaty of San Stefano</a>.