Right I suppose I found this kind of by accident. It's the University of Coimbra.
I.e. I had not identified it as a university. I thought it might be an episcopal palace. I can't find exactly when this building attained its present form. Style wise I was thinking Baroque, so possibly 17th century. Not sure, but that was what I was looking for.