In 1838 he was forced to resign by Fructuoso Rivera but started a rebel army and began a long civil war which lasted until 1851.