Islamic History

AoA to everyone, I am just a young student who is researching Islamic history and I am now researching about Muawiyah. I know the basic he was a horrible man a Muslim only by name but I've read that he fought along side Prophet SAWW in battles and wrote revelations of Qur'an basically a very close companion What would your arguments be on this Please forgive me if anything I have said might have offended you in any way or sorts but please be rest assured that is in no way my intention and I just want to learn Thank you once again