Brexit explained: What is the problem with the Irish border?

Northern Ireland is the smallest nation in the UK, but the border with the Republic of Ireland could become one of the biggest parts of the Brexit negotiations. So why is the Irish border so important?