Complex sentence: Spain had recognized Chilean independence since the 1840s, and both countries had diplomatic relations, therefore the expedition was very cordially received and the Admiral exchanged visits with the local authorities.
Split into simpler sentences: Spain had recognized Chilean independence since the 1840s, and the nations had maintained diplomatic relations. The expedition was cordially received, and the Admiral exchanged visits with local authorities.