Hyundai Motor will build its first factory in Brazil, investing $US205 million in a project expected to be completed next year.