When you attack a base you can occupy it by clicking the "attack and occupy" option. When you click this you will occupy the base if your attacking force can destroy the defending forces. When you finish the attack the debris created by the destroyed ships will be displayed and it can be harvested by any Recyclers which visit the base. You can Pillage the base daily (a minimum of 24 hours between pillage operations). While you occupy a base 30% of it's hourly economy goes to you! The base also suffers an additional 30% reduction to its construction and research ratings, and a 50% reduction to of its production.
When Occupation ceases the base will slowly regain its' economy at a rate of 2 credits per day. Thus a base with 100 CR per hour of Economy would be reduced to 70 credits while occupied, and it would take 15 days to completely return to normal.
If the occupied base is a Capital, then the owner loses 15% of his empire income while it is occupied.
See: Freeing Your Base