Arduino UNO as slave

Hello Everyone

I have a question regarding Arduino UNO, I want to connect 2 microcontroller one is UNO and the other is not UNO, so are there any library for the UNO microcontroller to become the slave to another microcontroller?

Thank you

A lot depends on what the other MCU is.

There are plenty of examples of RASPI controlling UNO's etc.
Part also depends on HOW you want to control.

Simplest is with serial commands.

Not really enough information in your question to make more than a broad statement answer.