To align goals with those of the company means having a substantially similar set of goals (for yourself or the team) to the company. This way, the teams are also working towards the overarching objectives of the top management.
The first step which is crucial to the alignment is having a well-defined vision set forth by the organization. The teams and individuals can follow along these lines and contribute a support force to the fulfillment of the company goals. In the end, the first key to alignment is a clear standard that is well understood by the teams and individuals.