The young midfielder has signed a long-term contract that will keep him at Porto until the summer of 2016.
The Portuguese champions have agreed a €13million transfer fee with Santos for the youngster.
Danilo has a €50million release clause attached to his five-year contract with Porto.