Portugal 5000 Reis Gold 1863 KM#508 with evidence of overstriking to the left of the 3 in the date (the underlying digit unclear) NEF with some edge nicks, one of only two years bearing this style of Luiz I portrait, the mintage of 38,000 makes this by far the scarcer of the two dates
Estimate: 700-1100 GBP