Matar dois coelhos numa cajadada só.

English Translation

To kill two birds with one stone.

Two similar idioms. In the Portuguese it literally means to kill two rabbits with one blow.
Both sentences mean to resolve two problems with one action.