Rotherham will sign ex-Sheffield Wednesday full-back Joe Mattock when the undisclosed deal comes into effect on 1 July.
Mattock, 25, was released by the Owls in May and has scored four goals in 187 league appearances for six clubs.
He began his career at Leicester, before spells at West Brom, Sheffield United, Portsmouth and Brighton.
The former England under-21 international is the Millers' second summer signing after Aidy White.