Borrowed from Latin aggregāre (“to flock together”).
Practice speaking and memorizing "agregar" and many other words and sentences in Portuguese.