In order to buy a property (and do a lot of other things!) in Portugal, you will need to have an NIF card.