Weni began his career under Teti, and served as a general under Pepi I Meryre and as governor of Upper Egypt during the reign of Merenre Nemtyemsaf I. As judge he investigated the queen who was apparently suspected of involvement in a conspiracy. While he was general, he reorganized the military into a format that was still in use in the New Kingdom.[2]