Who was made first Mario or sonic?

Mario was made first but I am not sure if they made Nintendo first.