The Federation is typically seen as a positive organization in the Star Trek universe, but it's not perfect. The Maquis are a consequence of that imperfection.