Taillight Relay Circuit: Description
WARNING: This page is about a different car, the 2011 Toyota Avalon. However, it is still accessible from the selected car via links, so may be relevant.
The body ECU controls the TAIL relay when a signal is received from the headlight dimmer switch assembly.