Nielsen composed the Fantasistykker for oboe and piano shortly after having taken up the position as second violinist in The Royal Danish Orchestra. The two movements were apparently completed by November 1889 and March 1890. During summer 1890 he revised the work, and in autumn it was finally published. See more about this work at The Royal Library