Where oh where do they go?

I should of taken better pics of where some things went so now I’m at a loss. Can you tell me where does this connection go? It runs off of the lead from the firewall harness located down by the alternator. Also I can’t remember what the brackets are for? Any help appreciated.
Carl

8E8D51F0-25CD-4583-9800-BE83020D118B.jpeg

3075AEC4-F15F-4419-964E-A536766E7B5F.jpeg