Presidential elections were held in El Salvador on 4 June 1876. Rafael ZaldÃÂvar defeated Indalecio Miranda and was elected by the legislature.